#ifndef QQ_ZIP_API
#define QQ_ZIP_API

#include <qobject.h>
#include <qstring.h>
#include <qfile.h>
#include <qdir.h>

#include <zip.h>

#include "QQSettings.h"

class QQZipApi :public QObject
{
	Q_OBJECT
public:
	QQZipApi(QObject* parent = nullptr);
	~QQZipApi();

	static bool compress_file(const QString& src_file, const QString& target_file);
	static bool compress_dir(const QString& src_dir, const QString& target_file);

	static bool decompress_file(const QString& src_file, const QString& target_file);
	static bool decompress_dir(const QString& src_file, const QString& target_dir);
};



#endif // !QQ_ZIP_API
